﻿using System.ComponentModel;
using Masuit.Tools;
using SqlSugar;

namespace sixgod.Model.System;

[SugarTable("SystemDictionary")]
public class SystemDictionary:ModelBase
{
    public string Name { get; set; }

    
    public string Code { get; set; }

    [SugarColumn(IsNullable = true)]
    public string Remark { get; set; }

    /// <summary>
    /// 模型验证
    /// </summary>
    public override (bool,string) Verify()
    {
        string result = "";
        var mark = true;
        if (Name.IsNullOrEmpty())
        {
            mark = false;
            result+="菜单名不能为空！";
        }

        return (mark,result);
    }
}